package com.chhuang.uresource.thread;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.chhuang.core.holder.SpringContextHolder;
import com.chhuang.uresource.service.IUResourceService;

public class UResourceThread implements Runnable {
	private static final Log log = LogFactory.getLog(UResourceThread.class);
	
	private IUResourceService resourceService = SpringContextHolder.getBean("UResourceServiceImpl");

	@Override
	public void run() {
		log.debug("开始整理");
		try {
			resourceService.arrangement();
		} catch (Exception e) {
			e.printStackTrace();
		}
		log.debug("完成整理");
	}

}
